package com.oo.inherit_3.school;

/**
 * Student--${description}
 *
 * @author: Jovi
 * @createTime: 2017-05-09 13:39
 **/
public class Student extends Person {

    private int id;

    public Student(String name, int age, String sex, int id) {
        super(name, age, sex);
        this.id = id;
    }

    public Student() {
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    @Override
    protected void intro() {
        System.out.println("我的学号是"+this.getId());
    }

    @Override
    protected void sleep() {
        System.out.println("作为一个好学生，一定要写完作业再睡觉");
    }

    protected void study() {
        System.out.println("作为学生我的职责就是");
    }


}
